<template>
    <div style="height: 1000px">
        首页 <h1>{{count}}</h1>
        <button @click="count++">增加</button>
        <button @click="count--">减少</button>
    </div>
</template>

<script lang="ts">
    import { ref,watch,computed,getCurrentInstance } from "vue"
    export default {
        name: "Home",
        setup(){
            const count = ref(0)
            // const { ctx }  =  getCurrentInstance()
            // console.log(ctx)
            // console.log(ctx.$router.currentRoute.value)
            return {
                count
            }
        }
    }
</script>

<style scoped>

</style>